const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const MovieType = {
  movieName: String,
  rate: String,
  director: String,
  actor: String,
  category: String,
  location: String,
  language: String,
  date: String,
  duration: String,
  description: String,
};

const MovieModel = mongoose.model("movie", new Schema(MovieType));
// 模型movie 将会对应 movies 集合,
module.exports = MovieModel;
